night time range fix