correcting dir structure