Main for Windows repair. [#2]