Fix logging error.