fixing delete issues