Add fix for AngularJS1.3-beta18