fix night time temp violation bug