Fixed search type string bug