beforeShowSearch fix