Fan plug

When I was working on my printer one of the wires broke on the cooling fan I have 2 fans tied together so I was hopping to fine jest the plug end

I ordered a new 40mm fan planning on cutting the wires and fixing my setup but when I got the new one the plugs is wrong  can someone tell me the size of the plug? so if I order a new one I can confirm it is the right one, or if you have a dead fan you can hook me up with all I need is the end with the wires 

Likely JST XHP-2