Fix obj.id in migration