fixed setEventManager
Merge pull request #4235 from prolic/patch-3

fixed setEventManager
Merge branch 'hotfix/4235'

Close #4235