fixed searchPattern