fix max scale