fixed datepicker error