Fix provider to get it working with Angular 1.1.4