Fixed some problems in calculating free space when loading file handle. These problems are not entirely done away with :(