fix wrong logging call