fixed bug in beautified message.