related terms autocomplete now performs correct query