fix max capacity