StockOut bug fix