Fixed the sleep timer