Fix model change issue with angular.js > 1.21