Fix datepicker error in contract form