restore repaint