Datetimepicker bugfix