Fixed a crash in .lookup