Update ObjectManager.cpp