Fixed samples HandsDetect and MotionDetect