Fix errors due to migration.