read operation from socket was fixed