Fix QC stage 3 bug

See commit message. Confirmed as a bug by Catherine.