Fix error in allowing types to be searched using a word other than "type"