Bug fix in reader