Change the way to deactivate holes-mode

The previous way is ineffective