Fix redirection after delete bug