fix setSleep