Fix another duplicate letter bug.

By doing lookup in the search, it was saving references that weren't getting deleted for false branches