Fix bug with forwarding socket data