fix a small bug in recv