fix Model::delete()