#455 incorrect implementation of RF getMaxEnergyStored