small Detect.cpp update