Fixed a small mistake (reading the socket twice)