correct erroneous object spec for $ref