fix issue with datepicker