Fixed error when searching only categories, no searchterm

also exchanged category and language lists for sets as it makes no sense
to search for the same multiple times.