fix error when no upcoming events.