Fix flashing problem.