OK here is the problem. I’ve modeled the basemesh and I have created the shape keys (bone driven)than assigned the mesh to the armature. Everything works fine until I create an Ik chain with a target selected. (for target I chose a bone from the same armature). Thank you for al the answers
The target bone of an IK chain cannot be the child of a bone in the chain.