fixed bug in search-mode setter