fixes in face recognition and sessions