fixed cygwin output port bug