fix CaseViewer