Very weird search problem