fixed error on socket data with just carriage return