Fixed bug in chat formatter.