fix insert new direcotries with depth=-1