Fixing reference paths