troubleshooting faulty thermostats