lookup bug fix