Fix for Angular 1.3.7