fix dir duplicates in sel.