fix some bugs in winSetup.py