Fixed a bug when fontifying error messages