Fix for potential and internal energies calculation.