fix directory duplication