fix public message bug