more allocator bug fixes