Fix small bug around buffering of therm output.