fix background flicker