Fix coverage detection