Fix search pos bug