Lookup - fixed computed index out of bounds bug