Fix logging call