add proper error message for migration submit & fixed bug on open-for-wr...

...itting