fix freed space accounting