Fixed tagged file search to filter by class type