fix max download check