Fixed some migration erros