fixing delete redirect problems