bug fix: search by type returns empty list