Fixed bug of reader.