Fix setPaintStyle error on removing potential edge