fix the broken datepicker