fix ref in schema