fix inconsistent reference to render attribute in render()