That "thing" is just an electrical switch actuated by the plunger. Since you are getting the same problem with two of your "thingy", I'd guess there is a short just behind the connector in the camera body. The bare connection may be getting just so that occasionally they make contact, only when the plug is inserted.