allDay flag was inited with wrong value