Fix bug with logout redirect