fixes #1700 clear search box if new category is selected