Fix #10259 

Fix of issue https://github.com/angular/angular.js/issues/10259