Fix update category count/words bug.