That is because there is no duplicate person. Just because a person shows twice in the family view it doesn't mean there are duplicates. It only means the person occupies more than on node on the tree- usually cause by cousins marrying each other. There is nothing you can do to prevent this as it is part of the display application.