bug in size when redrawing