fix(migration): fix some file content migration (refs #4526)