fix undefined column bug with a better cleaning of the svg when redrawing