Correct free space calculation

fix #78