fix directory issue