Fix enable logic
Merge pull request #181 from adaptlearning/issue/#180

Fix enable logic