fix bug in the render code

Benjamin Mako Hill || Want to submit a patch?