Fix bug in session controller redirect