Issue #3427: modify event registering with new event manager