fixed repaint()