fix dangling ObjectId reference