Reverts the if-condition when computing the header overlap