Fixing Buffer's freeSpace method