Fix: do not use secureMode when its disabled