Fixed EOF error outputs in console