Fixed bug that unneeded CR code was printed.