Fix face detection functionality

stable version for notepad process