fix datepicker loading error