Fix display of errors and warnings