Fix coverage calculating