fix bugs do Warning: Missing argument 2 for types_render_field()