fix coverage calculation.