fix table_value code generation bug