fixed a bug that infinitive loops
fixed a bug that key down updates ng-model