Fix: clear the polygon information before redrawing it