Fixed a integer size bug, freelist code works