corrected BuildDefinition event registering