fixed: ensure type and stub are used for searching. fixes #25