important datepicker bug fix