prevent repaint on cleanup