Replace bad thermostat, corrected wiring to thermostat ,check system system running normally at present time