added a guard against doing infinite work in uv word finding