fix viewing subtables does not work