Fix wrong-Energyconsumption in Path-Algorithm