fix the file parts and TOC files