Fixed a bug in CYGWIN