Fix all error on energy