Fix to event no-repetition code

Had the wrong numbers, basically every event would happen only once.