fix path join bug