fixed issues with migration manager