Fixed a bug with the new eror dsplay function