fixed a bug with max level

there is no Next: field when at level 27. Unknown if this also occurs
when hitting exactly a level, but it shouldn't matter since I think the
new code captures that case as well.
modified path file for testing