Get the EOF right.