Fix inverted reference paths.