Attaching to socket doesn't work, when socket name is from array

Hi everyone!

In my project I have a cart that the player can stand on, and a pile of wood they can pick up. When trying to attach the pile of wood to the closest socket on the cart, it just snaps to the origin point instead. The weirdest part is that when I manually set which socket I want to attach to, it works perfectly.

Turns out I should really pay more attention to the errors i’m getting in the editor. Eventually managed to fix it like this.