fix ref names