Fixing writing of Nevents