fix for detection on if a stock exists