fixing day/night cycle