redraw bugfix