Patched the persistent connection bug