fixed bug with unsorted events