fix datepicker restriction