bug fixed (empty subjects/categories)