Fixed handling for when there are no events