Dealing with the path text

From #1478.