fixed changing directories