Fixed crash if simulated energy is too high