search variable bug solved