Fix issue creating lookup table when no type attribute is present