fixing bug in recurrence for events