resolves angular/angular.js/#8876