Avoid duplicates from joining