fix search device bug