correcting direcory structure