fix a bug in windows