Bugfix on migrator