Bugfix in core migration num