Dishwasher overheating

We smelled something like burning wax and traced it to the dishwasher. During the drying cycle, the heating element gets extremely hot. This just started happening. Is there a thermostat that would be causing this or something else?

Thanks,
Rob