fixed minor datepicker bug