bug fix for getFreeSpace method