fix bug when AngularJS is uglified