Wand connection switch out

I have two shark vacuums almost the same but different models the motor burned up where the brush thingy is so o grabbed my old one and connected the wand to it and it works but it's not latching together so how can I switch out the plastic mechanism so that it'll work

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0