fix all cat count bug