fix Chrome repaint bug