Fix delete_model method.