Fix repaint of intervals when one changes