fix table_reference left recursion