Fixed persistent connection issue.