added fix for repaint on scroll