Fixed a bug in read_list