Fix space caculation during deletion

Reported by:	gpfiefer
Fixes:		#509