fix redirect on destroy