ng-resource trouble