fixing wrong lookup