Small rectDetect.cpp fix