fixed energy glitch