fix value_of of table for references