fixed the search by tags functionality