weird background flicker fix