Fixed bug with handling all-day events