fixes #5787 Cant add events