markMessages fixed in renderMessages