fix chrome repaint issue