Fix sleep mode