fix the search in generated modules