Fix to datetimepicker