Attempting to fix problem writing tables with multiple panels.