fixes ComponentTest crash.