fix makePath() connecting more paths than it should