classic repaint crash fix