fix safe reader - remove redundant reading at the end