Fixed getting of input streams from socket for plain