Fix ref paths