fix destroy bug