fix print badge by category bug