datepicker model initialization fix