sleep mode bug fixed