Fix text flash problem.