Fix displaying of errors.