CNRMainPlugin.php forgot to add haystack for array_search