minor error fixed on cygwin