fix render_json