Fix crash for instrumentation test