fixes double rendering bug (#748)

wow this is new for me