fix directory structures