bug fix for lack of category element