Fix bug in windows.