Fix ref location