fix max power bug