Fixed bug in migratecfg