fixed mass/energy bug.