Remove .DS_Store and fix search_type bug.