Fix board flashes on repaint.