fixed model::destroy