fixConnectionIssues