fix open sockets