fix relative_paths problems.