- fixed bug when searching for a type by name.