fixed unable to go into nightmode