Temporary fix for https://github.com/angular/angular.js/issues/2833