clean segment size calc
fix freed space accounting