fixed SleepActivity bug.