Fixes the way it guess the night time