fix ref error in data definition