Fix passing wrong variable type to get_stock