Fixed an auth redirect issue