Fixes file structures.