fix for failing socket_accept