fixed bug

first category was never selected in setSelectedCategories