Fixed a re-direct bug