Fixed the turnAllOff method