Fixed EOF error