Fix the md5 check code for data migration.