fixed model destroy error