fix check for all-day events