fixed issue with ng-repeat