Fixes some error display problems.