fix invalid directory structure