fix ng-repeat and grid view issues