bolt new input system clicking on game object only works on the first one.

I have a prefab that adds gameobjects to the scene. on the prefab I have a state machine and player input added. When I click the first time it works like it should but none of the other ones work.

I forgot to add I can click anywhere and the first one does mostly what it should. But I should have to click on the actual item not just on the screen.