Fix typo that caused crash for nEvents<maxEvents