fix case search issue