fixed two bugs in the fuzzy string comparison