Fix render_attribute