fix lookup bug