small path joining bug fix