fix a mistake of read_stock_data function