Fix crash bug in ASNLookup. Closes #223.