fix the bugs when use multi stocks.