Reset position when reaching EOF