CGA flicker fix