fixed problem with ngModel updates