Fix crash for instrumentation test

@gaochun please answer