fixed searchAll in searchScript