Correct reference paths