Fixed a bug of EOL. Refs #9101.