fix bug with scoped modules in search.