Update objectsmanager.cpp