Fixed a bug that made untyped search blow up