fixed errors in receive.cpp

fixed