Fixing duplicated seeds and references