issue #4234: Some fixes when binding event dispatcher.