fixed getLocations where terms are synonyms