TradeWindow class add

may cause your program to crash