Fixed getEnergyLatest

Fixes #23