fix ng-model bug