Fixed the reconnect issue

Yeah.  I think this fixed a major bug I've been fighting for months. :)