fix read message bug