fix path treatment.