making sure polylines and polygons redraw after they're edited