fix walker nth_path counting error(dup-adding) and boundary class type
issue