fix ref to constant