fix report viewer for old reports