Fix sleep_cycle.