Fixed an issue with nighttime.