Fixing the change of directory.