Remove useless repaint