redirection bugfix