Fix sleep