fix to search results when no records found and tab_to_space cleanup