fixed bug in TradeOffer Class