Also fix unmatched substitute call, which has been failing since the code was formatted with black for v7.1.