fix migrate substitution