Fixed an EoF problem