Fix search in block mode