Fixed `toObjectNode` method of `Activity` model.