fix glitches of viewWnd