fix disabling redirection