Angular 1.3 fix