Fixing turnOff()

Fixes #15
Thanks @Dianoga for the bug report and fix.