fix logging call