fixing delete model