bug fix in Migration and MetaData