fixed bug where program picks  same event over and over