Fixed a bug when continuing reading upon erro