fix issue for datepicker