fixing errors on stores duplicates