nevents is int now

* minor bugfix spotted by mario