Solve the crash in CocoStudioComponentsTest.