Fix redirection script