Problems with fan running when you close door

I have a problem with my microwave. When I close the door it automatically turns on the fan behind the control board and the light inside. We have to unplug it if we do not want it running. I have checked all the door switches and them seem to be working correctly. Do you have a solution.