Fixed multi-sample, multi-objective error where discarding happened too early.