fix free space calculations. closes #8