Fix readList method in IO.