Fix searchHandler() for Tag.type