bug fix when latest message has no message body