Fixed a redirect loop bug