fix redirect after deleting a match