Fixing the EOF looping out.