fix typo in class_events for adding dynamic labels