bug fix for maximum energy copy