Fix up perform_redirection