Fixed problem if no next events.