How to fix problem with HingeJoint2D anchor after change sprite?

Hello, I’m new in Unity and I have simple 2d game. I have a gnome prefab and every part of gnome (hands, legs, head) connected to body by Hinge Joint 2D. It works as expected.

When gnome touch the treasure I change sprite of the empty hand to sprite of the holding treasure arm. And now I got a bug. Arm moves to the knee, and I don’t know how to fix it. What is wrong here? I’ll appreciate any ideas and suggestions

I’m pretty sure that this is due to the ‘Auto-Configure Connected Anchor’ in the hinge joint being checked on. Changing the sprite also changes the physics shape and probably causes it to recalculate the anchor, in apparently a wrong manner.
Try disabling that and mess with the anchors yourself.