Fixes a redirection problem