fixed a dir change bug