Fixed migration script mistakes (#837) (#838)