small bug in insertStockCode