Attaching one component to another crash: 'template mismatch during attachment'

RootComponent = SpawnBoxComponent;