fixing delete issue