Fix lencompare

My understanding is that this is finding the most specific path to use.
There was a typo in lencompare that was causing it to return 0 all the time.