fix tableScan.ref