Fix migration bug
Fixed migration bug, migration seems to work fine now. Statistics of new and old system do agree now\!