fixed bug of Allocator