Scene Capture component cannot be parented to Spring Arm component C++

I have an Actor with SceneCapture component inside. The Scene Capture uses camera boom (Spring Arm component).

When inside the blueprint editor everything is fine, but when this actor is created on runtime with ‘SpawnActor<>()’ function, the Scene Capture component is no longer parented to the Spring Arm component.

EDIT: after some more research it appears that the Scene Capture component IS parented to the Spring Arm, but to its root rather than to its socket.

Any ideas?