fixing sockets