Fixed the xrecv error (local variable was getting referred to)