fix bug with tradepoint logic