Fix stuck datetimepicker.