fix repaint