fix upgrade-step migrate_to_richtext