Minor bug fix in reader.