remove duplicate line with converting to tikz