Fixed a difect that made it impossible to  create new notifyevents