fix registering two paths where one path is a substring of the other, but are disjunct paths