fixed dealloc bugged