fix bug with eor printing