Fix bug in windows