fixed dealloc crash