fix bug: path name clash. root.a1 is considered the same as root.a12
when filtering