fix flicker on scroll