repaint bug fix