bug fixes in time_series_search
merge issue