Fixed socket issues.