bias_energy bug fix