fix bug in lookup
fix bug in lookup