fixed a small bug with the output log