fixes double display of graph when previewing over an existing one