fix the receive message bug