Bugfix in migration num