Fix dealloc crash