Fixed a migration bug.