Fix cout.
Merge pull request #4334 from ktf/fix-cout

Fix cout.