Fixed a bug when showing messages in game.