fixed a minor bug I introduced when the disconnect command was issued