proper fix for categories not populating