Lookup command fix

Didn't test, but should fix #7.