Fix bug route order bug that prevents sign-out