Fixed issue with duplicate keys in ng-repeat by using track by