fixed AngularJS 1.3 issue