ng-repeat working correctly