fix search rule