fixbug create_magic_fields to create_magic_field