bug fix at Method.Lookup