Fixed StockTakeVariance bug