Bug fix for repeating events.