Fix local socket connection.