fixed bug in the filesentence iterator that caused early termination