Fixed bug in Windows