buggix for overridden get_total_energy