fixed bug with name dir