Fix render_field method