Fix 0047 migration