revert force repaint change