Fixes wrong redirections