fix directory stuffs