Fixed bug in free energy calculation for Morse potentials