PCT-670: fix for detection of tables