correction to categories count