fixes double rendering bug (#748)

cool!