Minor fixes to migration scripts.