Made it only recignise a face if a face was detected.