1. fixing lockmode error, so face detection is disabled always.
2. fixing escape mode exception when face detection is not ENABLED.