fix double drawing of shared nodes