fixed search by type code