typo fix in the migration function