Fixed object_alloc() and dealloc()