Fixed issues when day/night cycle disabled.