Fixes used capacity calculation for master