Fixed wrong key in checking nightdone