Fixed typo in type lookup function