Fixed some migration mistakes.