Fix some bugs in GC Allocations