Fixed a problem where DataReceive did not return msg, which caused it to freeze up after one receive