fix problem in joining path