fixed lookup bug