Fixed bug in trace mod lines output to cout