minor fix for sockets