midnightCheck modification

set RandomIsScheduled flag to false