datepicker bugfixes