fixing path join bug