Fixes the sockets