fix repaint issues on lists and trees