Fixed crashs on dealloc