fix issue about mode with search