Fixed a redirect issue