Fix error in receive part when receiving the first message