fixed error in ObjectBase and improvement