fix on migrate