bug fix in Vector lookuprand