fix flow-controlfor categories_attributes in event_helper