Fix bug in UrlBuilder that changes term and type values.