bug in lookup