Fix maxStorage computation.