correct eof string position