fix Object.cpp