fix datetimepicker issue