tweaking bug fix for #222 for multiple Smart_index_patterns