modify some bugs in windows