fixed reader exit