Fixed boolean search field and incorrect variable name