Fix coverage calculation