Fix enable logic

Fixes #180