pin and minor search fix