fix on migrate definitions