fix bug in message