error on detect.sh