Fixed bug that cropped up when creating a shadow of statechart event