Fixed $ref to json