fix the bug of searching problems