fix directory change