bug fix: connect(...) == 0