What is causing my bulb to do this?

I took some sand paper and sanded the one contact on the terminal and it is now working. I probably should have thought of this before:/