fix header flickering on scroll