fixed EOF