Fix searching by datatype.