repaint() fix