fix a free space calc bug at pfm.cc