Correcting the file structure