fix max power code