fix print categories bug