fix counting of calls