Fix #898. Two approximate matches followed by an exact match no longer cause an ambiguity to be reported.