fix tablestocharts not finding table origin id