Fixed EOF declaration bug