fix broken categories generation