Update objectExtractor.cpp