fixed search/isAdminCheck bug