fix in custom search rule creation