fix troubles in migration