Update max energy