fixed path separation correction logic