fixed issue with select all and deselect all categories