fixing redirections