fixed the continuous attempt to connect issue.