bugfix in migration