fix available storage calculation.