fixed disconnection issues on osx client