fix a bug when get all categories/users