correcting directories