fix Sleep Mode