Closes path join properly