resolving primary category not being added to secondary categories on create