This could explain why it stuffed up in the first place as initially in twisted the two wires together and connected it to one end only.
could explain why it was constantly on
If you twisted the 2 transformer wires together then you are lucky you didn't burn it out... for it to light up, you must have had some sort of grounding at the opposite end