Fix infinite redirection on logout