Fixed a case with teeing output.