Fixed bug printing EOF char.