fix directory problem