Fix saving tocPreview from imported file