Fixed boolean mapping in ChatMessage
Fixed a couple of bugs.