fix bug for logging zero calls