Fix duplicates problem with angular.