fix global var search