fix search pattern