Fixed next variable able to redirect to session routes