fixed logging call