This is a real common problem. Loose and hanging connections at the attic fan switch. A perfect way to start an attic fire.