Fixed sync bug in the trading system