fixed an issue in redirection with terms