fix change of directory