fix undefined trading_name index