rectified the ng-repeat error causing long loading time