hey, i had a similar malfuction. i got a brand new lamp offline and set it up. it workd great for a while then i noticed that sometimes it would come on and sometimes it would be off when i got up cause i have it set to come on a little before daylight. it didn't take me long to realize that the socket was going bad. i took the socket off carefully and notice that the hot wire(the wire that is white or red) was somehow melting from getting to hot i guess. i took the bulb out and looked inside and the socket and the screw that the hot wire is attached to was black. i bought a new mogal socket offline, wired it to the reflector hood and it has been great so far. it hasn't failed to come on yet.