avoid errors in energy profile