Now checkboxes are selected when switching category, fixes #256