fixed small bug in tradebot