Fixed redirection issue for Remix