fix a persistant connection bug