Fixes crash of PerformanceTest/EventDispatcherTest.