Fan problem

I went to WindRock yesterday to ride. After multiple mud holes and creek crossings, I noticed the fan was constantly clicking on and off. It thawed out in my garage last night. When I started it today, the fan immediately came on and stayed on. I pulled the fuse from the Hayden controller and it went off. I rode it around and the fan performed as it should from the factory.
Any ideas? I’m assuming the controller is bad?