fixed _doLinearLookup