fixed passing locale to search