Sockets bugfix