map ngModel if undefined fix