fixed strange rectangle redraw