fix destroy error