Coolant Temp sensor might be acting up. Scan it to see what it shows for both conditions.