fixed bug causing reconnect to appear to fail