Fix cloned directory bug.