fix search sp bug