Lamp problems

I replaced the transformer and the capacitor today.  It looked totally fried and smelt like it also.  I also did not get electrocuted.  Which is good.  Oh and it worked.