Fixed energy reading bug