fixed bugs in fuchia migrator script