datepicker bugfix