Safety Switch

I had a problem with one of the 3 safety switch cables coming off. What comes off is Black. How to solder it correctly?