Fixes an invalidation order issue in the benchmark.